/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import dao.PlayerDao;
import pojo.Player;

/**
 *
 * @author Kenneth Veenstra <kenneth.veenstra@gmail.com>
 */
public class PlayerManager
{
    private PlayerDao playerDao;
    public PlayerManager(PlayerDao playerDao)
    {
        this.playerDao = playerDao;
    }

    public Player getPlayer(Integer id)
    {
        return playerDao.getPlayerById(id);
    }
    
    public boolean UpdatePlayer(Player player)
    {
        return playerDao.UpdatePlayer(player);
    }
    
}
